package com.hst.web.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.HSID;
import com.hst.core.dao.BaseEntity;

@Entity
@Table(name = "t_flow_task")
@Comment("流程任务表")
@HSID(length = 10, prefix = "F", resetByDay = true)
public class TFlowTask extends BaseEntity {

	@Id
	@Column(name = "id", length = 10)
	@Comment("ID")
	@GeneratedValue(generator = "hsid")
	@GenericGenerator(name = "hsid", strategy = "com.hst.core.hbm.HSIDGenerator")
	private String id;

	@Column(name = "flow", length = 2, nullable = false)
	@Comment("流程类型:0: 员工通行证申请, 1: 车辆通行证申请, 2: 员工通行证复核")
	private String flow;

	@Column(name = "data_id", length = 20)
	@Comment("对应申请信息表id")
	private String dataId;
	
	@Column(name = "config_id", length = 20)
	@Comment("流程Id")
	private String configId;
	
	@Column(name = "card_type", length = 20)
	@Comment("申请通行证类型")
	private String cardType;
	
	@Column(name = "remark", length = 500)
	@Comment("申请备注")
	private String remark;
	
	@Comment("顺序")
	private int srl;

	@Column(name = "next", length = 10)
	@Comment("下一步处理角色")
	private String next;
	
	@Column(name = "status", length = 50)
	@Comment("审批节点")
	private String status;

	@Column(name = "EMPLOYEE_TYPE_ID", length = 20)
	@Comment("人员类别")
	private String employeeTypeId;

	public String getEmployeeTypeId() {
		return employeeTypeId;
	}

	public void setEmployeeTypeId(String employeeTypeId) {
		this.employeeTypeId = employeeTypeId;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getConfigId() {
		return configId;
	}

	public void setConfigId(String configId) {
		this.configId = configId;
	}

	public int getSrl() {
		return srl;
	}

	public void setSrl(int srl) {
		this.srl = srl;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFlow() {
		return flow;
	}

	public void setFlow(String flow) {
		this.flow = flow;
	}

	public String getDataId() {
		return dataId;
	}

	public void setDataId(String dataId) {
		this.dataId = dataId;
	}

	public String getNext() {
		return next;
	}

	public void setNext(String next) {
		this.next = next;
	}

}
